<?php
/**********************
**updaterooms.php
**Date Created: 4/13/2009
**Copyright 2009 Tomorrow Tech Industries
**Contact: RPITomorrowTech@gmail.com
**********************/

require_once("editrooms.php");
$name = $_POST['name'];

//function addDeviceType($name, $URL){
function addRoom() {
   global $connection;
   $name = $_POST['name'];
   
   $q="INSERT INTO Room (name)VALUES ('".$name."')"
   //$q = "INSERT INTO DeviceTypes (name, iconPath)VALUES ('".$_POST['name']."', '"$_POST['URL']."')"
		or die("Failed on INSERT INTO Room VALUES...");
   //$q = "INSERT INTO User VALUES ('$username', '$password')"
   //return mysql_query($q,$connection);
	mysql_query($q,$connection);
	$goto="addstrip.php";
	header ("Location: $goto");
}



addRoom();
		
?>
